/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.message.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 系统消息记录表
 *
 * @author liyue
 * @date 2022-04-29 14:13:58
 */
@Data
@TableName("sys_system_message_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "系统消息记录表")
public class SystemMessageRecord extends Model<SystemMessageRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 未读
     */
    public static final Integer STATUS_UNREAD = 0;
    /**
     * 已读
     */
    public static final Integer STATUS_READ = 1;

    /**
     * 主键ID
     */
    @TableId
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 租户号
     */
    @ApiModelProperty(value = "租户号")
    private Long tenantId;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Long createdId;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 类型编码
     */
    @ApiModelProperty(value = "类型编码")
    private String typeCode;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String remarks;

    /**
     * 读取时间
     */
    @ApiModelProperty(value = "读取时间")
    private String readTime;

    /**
     * 读取用户ID
     */
    @ApiModelProperty(value = "读取用户ID")
    private String readUserId;

    /**
     * 读取用户名称
     */
    @ApiModelProperty(value = "读取用户名称")
    private String readUserName;

    /**
     * 读取单位ID
     */
    @ApiModelProperty(value = "读取单位ID")
    private String readOuId;

    /**
     * 读取单位名称
     */
    @ApiModelProperty(value = "读取单位名称")
    private String readOuName;

    /**
     * 读取单位全名称
     */
    @ApiModelProperty(value = "读取单位全名称")
    private String readOuFullName;

    /**
     * 消息对象ID
     */
    @ApiModelProperty(value = "消息对象ID")
    private Long messageUserObjectId;

    @ApiModelProperty(value = "打开链接")
    private String openUrl;

}
